package com.ruoyi.project.his.service;

import com.ruoyi.project.his.domain.DoctorDept;

import java.util.List;

public interface IDoctorDeptService {
    /**
     * 按照条件查询科室集合
     * @param doctorDept
     * @return
     */
    List<DoctorDept> selectDoctorDeptList(DoctorDept doctorDept);
    /**
     * 查询所有科室
     * @return
     */
    List<DoctorDept> selectDoctorDeptAll();
    /**
     * 根据主键查询科室
     * @param deptId
     * @return
     */
    DoctorDept selectDoctorDeptByDeptId(Integer deptId);

    /**
     * 新增科室
     * @param doctorDept
     * @return
     */
    int insertDoctorDept(DoctorDept doctorDept);

    /**
     * 更新科室
     * @param doctorDept
     * @return
     */
    int updateDoctorDept(DoctorDept doctorDept);

    /**
     * 批量删除科室
     * @param deptIds
     * @return
     */
    int deleteDoctorDeptByDeptIds(Integer[] deptIds);

    /**
     * 校验科室名称唯一
     * @param doctorDept
     * @return
     */
    String checkDocketDeptNameUnique(DoctorDept doctorDept);

    /**
     * 校验科室编码唯一
     * @param doctorDept
     * @return
     */
    String checkDocketDeptCodeUnique(DoctorDept doctorDept);
}
